package com.zqx.decorator.specificdecorator;

import com.zqx.decorator.abcomponent.Components;
import com.zqx.decorator.abdecorator.ComponentDecorator;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class BlackBorderDecorator extends ComponentDecorator {
    public BlackBorderDecorator(Components components) {
        super(components);
    }

    @Override
    public void display()
    {
        this.setBlackBorder();
        super.display();
    }

    public void setBlackBorder()
    {
      log.info("为构件增加黑色边框");
    }
}
